<div id="allcolumn" style="height: 600px">
    <div id="left-col">
        <h3 class="titre">Connexion</h3>
            <div class="block" id="connnexion" style="border:1px solid #D8DFEA;">

                        <div style="float:left;border:0px solid ;margin-left: 5px;">
                        <?php if ($form->hasErrors()): ?>
                        <?php     foreach ($form as $widget): ?>
                        <?php        echo $widget->renderError(); ?>
                        <?php     endforeach; ?>
                        <?php endif; ?>

                        <form name="" action="<?php echo url_for('compte') ?>" method="POST">
                        <table>
                            <tr><td><?php echo $form['username']->renderLabel('Nom utilisateur') ?></td><td><?php echo $form['username']->render(); ?></td></tr>
                            <tr><td><?php echo $form['password']->renderLabel('Mot de passe') ?></td><td><?php echo $form['password']->render(); ?></td></tr>
                            <tr align="right" valign="bottom"><td colspan="2" >
                                <input class="connexion" style="" type="submit" name="send" value="signin" src="">
                                </td>
                            </tr>
                        </table>
                            </form>
                            <div><a href="<?php echo url_for('guard/forgot_password')?>"/>Mot de passe oublié ?</a></div>
                    </div>
    </div>
    </div>
    <div id="left-col" style="margin-left: 270px;">
        <h3 class="titre">Identification</h3>
        <div  class="block" style="height: auto;border:1px solid #D8DFEA;">
                    <?php if ($sf_user->hasFlash('notice')): ?>
                        <div class="flash_notice"></div>
                    <?php endif ?>
                    
                    <?php if ($formInscription->hasErrors()): ?>
                    <span class="error_message"><?php echo "Formulaire contient des erreurs"?></span>
                    
                   
                    <?php     foreach ($formInscription as $widget): ?>
                    <?php        echo $widget->renderError(); ?>
                    <?php     endforeach; ?>
                    <?php endif; ?>
                    <form name="" action="<?php echo url_for('compte') ?>" name="frmInscription" method="POST">
                    <table>
                        <tr><td><?php echo ($formInscription['username']->hasError() == 1)? '<span style="color:red;width:150px">'.$formInscription['username']->renderLabel('Username').'</span>':$formInscription['username']->renderLabel('Nom utilisateur') ?></td><td><?php echo $formInscription['username']->render(); ?></td></tr>
                        <tr><td><?php echo ($formInscription['email_address']->hasError() == 1)? '<span style="color:red;width:150px">'.$formInscription['email_address']->renderLabel('Email').'</span>':$formInscription['email_address']->renderLabel('Email') ?></td><td><?php echo $formInscription['email_address']->render(); ?></td></tr>
                        <tr><td><?php echo ($formInscription['password']->hasError() == 1)? '<span style="color:red;width:150px">'.$formInscription['password']->renderLabel('Mot de passe').'</span>': $formInscription['password']->renderLabel('Mot de passe') ?></td><td><?php echo $formInscription['password']->render(); ?></td></tr>
                        <tr><td><?php echo ($formInscription['password2']->hasError() == 1)? '<span style="color:red;width:150px">'.$formInscription['password2']->renderLabel('Mot de passe').'</span>': $formInscription['password2']->renderLabel('Confirmer') ?></td><td><?php echo $formInscription['password2']->render(); ?></td></tr>
                        <tr><td><?php echo ($formInscription['gender']->hasError() == 1)? '<span style="color:red;width:150px">'.$formInscription['gender']->renderLabel('gender').'</span>': $formInscription['gender']->renderLabel('Civilite') ?></td><td><?php echo $formInscription['gender']->render(); ?></td></tr>
                        <tr><td><?php echo ($formInscription['last_name']->hasError() == 1)? '<span style="color:red;width:150px">'.$formInscription['last_name']->renderLabel('last_name').'</span>': $formInscription['last_name']->renderLabel('Nom') ?></td><td><?php echo $formInscription['last_name']->render(); ?></td></tr>
                        <tr><td><?php echo ($formInscription['first_name']->hasError() == 1)? '<span style="color:red;width:150px">'.$formInscription['first_name']->renderLabel('prenom').'</span>': $formInscription['first_name']->renderLabel('Prenom') ?></td><td><?php echo $formInscription['first_name']->render(); ?></td></tr>
                        <tr><td><?php echo ($formInscription['birthdaydate']->hasError() == 1)? '<span style="color:red;width:150px">'.$formInscription['birthdaydate']->renderLabel('Date de naissance').'</span>': $formInscription['birthdaydate']->renderLabel('Date de naissance') ?></td><td><?php echo $formInscription['birthdaydate']->render(); ?></tr>
                        <tr><td><?php echo ($formInscription['zipcode']->hasError() == 1)? '<span style="color:red;width:150px">'.$formInscription['zipcode']->renderLabel('Code Postal').'</span>': $formInscription['zipcode']->renderLabel('Code Postal') ?></td><td><?php echo $formInscription['zipcode']->render();?></td></tr>
                        <tr><td><?php echo ($formInscription['city']->hasError() == 1)? '<span style="color:red;width:150px">'.$formInscription['city']->renderLabel('Ville').'</span>': $formInscription['city']->renderLabel('Ville') ?></td><td><?php echo $formInscription['city']->render();?></td></tr>
                        <tr align="right" valign="bottom">
                            <td colspan="2" ><input class="connexion" type="submit" name="send" value="inscription"  src=""></td>
                        </tr>
                    </table>
                        </form>
        </div></div>
    </div>